package com.oig.sys.base.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * @author wuxl
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_unit_conv_rate")
public class TbUnitConvRate implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "unit_code", nullable = false, length = 3)
	private String unitCode;

	/**
	 */
	@Column(name = "unit_cnum", nullable = false)
	private Integer unitCnum;

	/**
	 */
	@Column(name = "target_unit_code", nullable = false, length = 3)
	private String targetUnitCode;

	/**
	 */
	@Column(name = "target_unit_rate", nullable = false)
	private java.math.BigDecimal targetUnitRate;

	/**
	 */
	@Column(name = "status", nullable = false)
	private String status;
}
